﻿@model WebUI.Models.ProductListViewModel

@{
    ViewBag.Title = "List";
    Layout = "~/Views/Shared/_Layout.cshtml";
}


<h2>List</h2>
@foreach (var p in Model.Products)
{
    Html.RenderPartial("ProductSummary", p);
} 

<div class="pager">
    @Html.PageLinks(Model.PagingInfo, x => Url.Action("List", new {page = x, category = Model.CurrentCategory}))
</div>